﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Caipu_Manage.aspx.cs" EnableEventValidation="false" Inherits="Catering.Catering_Page.Caipin.Caipu_Manage" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/Dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>菜品管理</title>
    <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../../../Style/head.css" />
    <link rel="stylesheet" type="text/css" href="../../../Style/center.css" />
    <link href="../../../Style/zhezhao.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/zhezhao.js" type="text/javascript"></script>
    <link href="../../../Style/tinybox_style.css" rel="stylesheet" type="text/css" />
    <script src="../../../Style/xxk.js" type="text/javascript"></script>
    <link href="../../Scripts/Extjs/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
    <script src="<%=this.ResolveUrl("~/") %>Scripts/Extjs/adapter/ext/ext-base.js" type="text/javascript"></script>
    <script src="<%=this.ResolveUrl("~/") %>Scripts/Extjs/adapter/ext/ext-all.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function showitem() {
            Ext.tree.TreeNodeUI.prototype.onOver = function (e) {
                this.fireEvent("mouseover", this.node, e);
            };
            var rootItem = new Ext.tree.AsyncTreeNode({
                id: "0", //根节点ID
                text: "原料列表", //根节点名称
                self: 'yuanliao',
                next: 'yuanliao',
                loader: new Ext.tree.TreeLoader({
                    url: "TreeListData.aspx",
                    checked: false,
                    expanded: true,
                    listeners: {
                        "beforeload": function (treeloader, node) {
                            treeloader.baseParams = {
                                id: node.id.replace('D', '').replace('X', ''), //节点ID
                                self: node.attributes.self, //当前节点类型
                                next: node.attributes.next, //下一节点类型
                                type: "yuanliao", //访问参数
                                action: '0',
                                method: 'POST'
                            };
                        }
                    }
                })
            });
            var itemlist = new Ext.tree.TreePanel({
                title: '',
                layout: 'fit',
                collapsible: false, //隐藏模块头
                border: true,
                lines: true,
                singleExpand: false,
                autoScroll: true,
                frame: false,       // 美化界面
                animate: true,      // 动画效果
                enableDD: true,     //是否支持拖拽效果
                animCollapse: true,
                useArrows: false,
                rootVisible: true,
                root: rootItem,
                listeners: {
                    'click': function (n) { //点击赋值
                        if (!n.leaf) {
                            alert("请选择子类!");
                            return;
                        }
                        Win.hide();
                    },
                    'mouseover': function (n) { //标题显示
                        if (n.attributes.self == "item")
                            Win.setTitle("物理位置：" + n.attributes.position);
                        else
                            Win.setTitle("选择原料");
                    }
                }
            });
            var Win = new Ext.Window({ //样式控制
                title: '选择原料',
                modal: true,
                width: 300,
                height: 400,
                layout: 'fit',
                plain: true,
                bodyStyle: 'padding:5px;',
                buttonAlign: 'center',
                items: itemlist
            });
            Win.show();
        }
    </script>
    <style type="text/css">
        .Create_Recipe { margin-top: 0; }
        .Create_Recipe { border: 1px solid #159aec; border-top: none; width: 998px; }
        .soso_lt { padding: 5px 0; }
        .soso_lt a { margin-left: 3px; }
        .Dish_info_td td { padding:3px 0px; }
        #tbody_DishList tr { cursor:pointer;}
        #tbody_DishList td{ text-align:center;}
        .width75{width:75px; text-align:right;}
        .td_padding_01{width:360px;}
        .td_padding_01 td{ padding:8px 0px;}
        .swxx_table tbody td{ padding:0px; border:0px; border-bottom:1px dashed #C2DEF6; height:28px; line-height:28px;}
        .Recipe_0206 h2{ background-position:-1px -28px;}
        .tree_css{height:340px; width:176px; margin:0px; padding:0px; overflow-y:scroll;}
    </style>
    <!----搜索菜品------>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("#But_Dish_Seach").click(function () {
                if ($("#Txt_Dish_Seach").val() != "") {
                    $("#Dl_div  a:contains('" + $("#Txt_Dish_Seach").val() + "')").css("color", "red").parentsUntil("#Dl_div").filter("div").prev("table").find("a").css("color", "red");
                }
                $("#Tv_Dish img[alt]").each(function () {
                    var str = $(this).attr("alt");
                    if (str.indexOf("折叠") > -1) {
                        var ss = $(this).parents("a").attr("href");
                        window.location = ss;
                    }
                });
            });

            $("#td_Library tr").mouseover(function () {
                $("#td_Library tr").css("background-color", "#fff");
                $(this).css("background-color", "#ccc");
            });

        });



        //快捷键触发查询


        function Search() {
            if (event.keyCode == 13) {
                if ($("#Txt_Dish_Seach").val() != "") {
                    $("#Dl_div  a:contains('" + $("#Txt_Dish_Seach").val() + "')").css("color", "red").parentsUntil("#Dl_div").filter("div").prev("table").find("a").css("color", "red");
                }

                $("#Tv_Dish img[alt]").each(function () {
                    var str = $(this).attr("alt");
                    if (str.indexOf("折叠") > -1) {
                        var ss = $(this).parents("a").attr("href");
                        window.location = ss;
                    }
                });
            }
        }
    </script>
    <!------加载-------->
    <script language="javascript" type="text/javascript">

        $(document).ready(
        function () {
            alert
            $.ajax({
                type: "Post",
                url: "../../PostDate.aspx/LoadTreeView",
                data: "{'strTreeView':'Librarydata '}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {

                    //   $("#RawMaterial").append(data.d[0]); 

                }
            });

        });
    </script>
    <!------菜谱库---->
    <script language="javascript" type="text/javascript">


        function show_list() {
            TINY.box.show({ html: '<div class=\'boxli\'>' + $("#Div_DataList_Library").html() + '</div>', boxid: 'frameless', animate: true });
        }


        //选择菜品库
        function Library(Librarydata) {

            $.ajax({
                type: "Post",
                url: "../../PostDate.aspx/Library_Select_Caipu",
                data: "{'Library':'" + Librarydata + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    //  alert(Librarydata);
                }
            });
            TINY.box.hide();
            $("#ButLibrary").click();
        }

    

    </script>
    <script language="javascript" type="text/javascript">
        function select_library(Librarydata) {
            $("#butLibaryID").val(Librarydata);
            $("#ButLibrary").click();
        }

        //向菜谱库中添加菜
        function new_caipu_click() {
            var libraryId = $("#butLibaryID").val();    //菜谱
            var DishTypeId = $("#Drop_DishType").val(); //菜品分类
            var DishName = $("#txt_DishName").val();    //菜品名称

            if (DishTypeId == null) {
                $("#tbody_DishList").html("");
                return;
            }
            $.ajax({
                type: "Post",
                timeout: 60000,
                url: "Caipu_Manage.aspx/GetDishByTypeid",
                data: "{'libraryID':'" + libraryId + "','DishTypeid':'" + DishTypeId + "','DishName':'" + DishName + "','StrStartIndex':'1','StrMaxSize':'400'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    if (data.d[3] == "OK") {
                        var str = "";
                        if (data.d[0] != "") {
                            var o = eval('(' + data.d[0] + ')');
                            var j = 0;
                            $(o.ObjInfo).each(function () {
                                str += "<tr><td><input type=\"checkbox\" name=\"ck\" value=\"" + o.ObjInfo[j].id + "|" + o.ObjInfo[j].DTID + "\" /></td><td>" + o.ObjInfo[j].index + "</td><td>" + o.ObjInfo[j].Name + "</td></tr>";
                                j++;
                            });
                            if (!data.d[2]) {
                                GetOtherDishList(libraryId, DishTypeId, DishName, data.d[1], "400");
                            }
                        }
                        $("#tbody_DishList").html(str);
                        tr_bangding();
                        divshow('div_DishList', 'div_bg');
                    }
                }
            });
        }

        function GetOtherDishList(libraryId,DishTypeId,DishName,startindex,maxsize) {
            $.ajax({
                type: "Post",
                timeout: 60000,
                url: "Caipu_Manage.aspx/GetDishByTypeid",
                data: "{'libraryID':'" + libraryId + "','DishTypeid':'" + DishTypeId + "','DishName':'" + DishName + "','StrStartIndex':'" + startindex + "','StrMaxSize':'" + maxsize + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    if (data.d[3] == "OK") {
                        if (data.d[0] != "") {
                            var o = eval('(' + data.d[0] + ')');
                            var str = "";
                            var j = 0;
                            $(o.ObjInfo).each(function () {
                                str += "<tr><td><input type=\"checkbox\" name=\"ck\" value=\"" + o.ObjInfo[j].id + "|" + o.ObjInfo[j].DTID + "\" /></td><td>" + o.ObjInfo[j].index + "</td><td>" + o.ObjInfo[j].Name + "</td></tr>";
                                j++;
                            });

                            if (!data.d[2]) {
                                GetOtherDishList(libraryId, DishTypeId, DishName, data.d[1], maxsize);
                            }
                        }
                        var oldstr = $("#tbody_DishList").html();
                        $("#tbody_DishList").html(oldstr + str);
                        tr_bangding();
                    }
                }
            });
        }

        //绑定行选择事件
        function tr_bangding() {
            $("#tbody_DishList tr").mouseover(function () {
                $("#tbody_DishList tr").css("background-color", "#fff");
                $(this).css("background-color", "#999");
            });

            $("#tbody_DishList tr").click(function () {
                var DishID = $(this).find("input").val();
                $.ajax({
                    type: "Post",
                    url: "Caipu_Manage.aspx/GetDishById",
                    data: "{'DishID':'" + DishID + "'}",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (data) {
                        $("#txt_Dish_Name").val(data.d[0]);
                        $("#txt_Dish_Characteristic").val(data.d[1]);
                        $("#txt_Dish_Method").val(data.d[2]);
                    }
                });
            });
        }

        //保存勾选的菜
        function library_AddDish() {
            var strSelectedDish = "";
            var libraryId = $("#butLibaryID").val();

            $("#tbody_DishList input").each(function () {
                if ($(this).attr("checked") == true || $(this).attr("checked") == 'checked') {
                    strSelectedDish += $(this).val() + ",";
                }
            });

            if (strSelectedDish == "") {
                alert("请选择菜品！");
                return;
            }
            $.ajax({
                type: "Post",
                url: "Caipu_Manage.aspx/Addlibrary_Dish",
                data: "{'libraryID':'" + libraryId + "','stridList':'" + strSelectedDish + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    if (data.d == "OK") {
                        alert("保存成功！");
                        window.location = 'Caipu_Manage.aspx?Lid=' + $("#butLibaryID").val();
                    }
                }
            });

        }

        function ShowUploadImg() {
            divshow("div_main", "div_bg");
        }

        //通过菜类动态加载可选菜列表
        $(document).ready(function () {
            $("#Drop_DishType").change(function () {
                new_caipu_click();
            });
        });

    </script>
    <!--全选 反选-->
    <script type="text/javascript">
        $(document).ready(function () {
            $("#CheckAll").click(function () {
                if ($(this).attr("checked") == true || $(this).attr("checked") == "checked") {
                    $("#tbody_DishList input").attr("checked", true);
                }
                else {
                    $("#tbody_DishList input").attr("checked", false);
                }
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Button ID="ButLibrary" runat="server" Style="display: none" OnClick="ButLibrary_Click" />
    <asp:HiddenField ID="butLibaryID" runat="server" />
    <div id="div_se_1" class="nav_2" style="display: none">
        <div class="nav_2_1"><img src="../../Images/nav2_bg1.gif" /></div>
        <ul>
            <li><a href="#"><span class="lvse_border">配餐人群设置</span></a></li>
            <li><a href="#"><span class="feise_border">选择配餐日期</span></a></li>
            <li style="background: none"><a href="#"><span class="feise_border">生成食谱</span></a></li>
        </ul>
        <div class="nav_2_3"><img src="../../Images/nav2_bg2.gif" /></div>
    </div>
    <div id="div_se_2" class="nav_se" style="display: none">
        <div class="nav_se_1"><img src="../../Images/nav2_bg1.gif" /></div>
        <ul>
            <li><a href="#"><span class="lvse_border">周食谱清单</span></a></li>
            <li><a href="#"><span class="lvse_border">周食谱检查表</span></a></li>
        </ul>
        <div class="nav_se_3"><img src="../../Images/nav2_bg2.gif" /></div>
    </div>
    <div class="xxk_button"></div>
    <div class="Center_Content" id="div2_1" style="display: block">
        <div class="Create_Recipe">
            <div class="left_CR">
                <div class="Recipe_0206">
                    <h1><a href="#" onclick='divshow("divmain","divup")'>菜谱库</a></h1>
                    <div class="Dl_div" style="margin:0px; padding:0px;">
                        <h2><asp:Label runat="server" ID="lab_Library_Name"></asp:Label></h2>
                        <div id="Dl_div" class="tree_css">
                            <asp:TreeView ID="Tv_Dish" runat="server" Width="176"  OnSelectedNodeChanged="Tv_Dish_SelectedNodeChanged" SelectedNodeStyle-BackColor="#FCA402" NodeIndent="10">
                            </asp:TreeView>
                        </div>
                        <div class="soso_lt_div">
                            <table cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td height="30" valign="middle" width="150" align="center">
                                        <input name="Txt_Dish_Seach" id="Txt_Dish_Seach" style="width:140px; height:20px; line-height:20px; margin-top:5px;" type="text" class="input_bg" />
                                    </td>
                                    <td align="left">
                                        <input name="But_Dish_Seach" id="But_Dish_Seach" TabIndex="0" type="button" class="button_soso_lt" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="soso_lt">
                            <a href="javascript:void(0);" class="add_botton">
                                <img src="../../Images/add.gif" onclick="new_caipu_click()" /></a>
                            <asp:ImageButton ImageUrl="../../Images/delt_img.gif" runat="server" ID="img_btn"
                                OnClick="img_btn_Click" TabIndex="100" />
                        </div>
                    </div>
                </div>
            </div>
            <div class="Right_CR">
                <div class="div_0207 left_width400" style="height: 280px;">
                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td><h1><img src="../../Images/cp_h1_01.gif" />菜品信息</h1></td>
                            <td align="right">
                                <asp:ImageButton ID="Btn_Cai_Edit" ImageUrl="../../../Images/save.gif" runat="server" Text="保存" OnClick="Btn_Cai_Edit_Click" Visible="false" />
                            </td>
                        </tr>
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="td_padding_01">
                        <tr>
                            <td width="75" align="right" height="30">菜品名称：</td>
                            <td width="150" valign="middle">
                                <asp:TextBox runat="server" ID="Txt_caipin" CssClass="input_bg" style="width:150px;"></asp:TextBox>
                                <asp:TextBox runat="server" ID="Txt_FMID" Visible="false"></asp:TextBox>
                                <asp:TextBox runat="server" ID="Txt_DTID" Visible="false"></asp:TextBox>
                            </td>
                            <td rowspan="2" width="135" valign="top">
                                <div class="img_touxiang" style="text-align:center; width:135px;">
                                    <span style="width:100px; margin:4px auto;">
                                        <asp:Image ID="ImgCaipin" runat="server" ImageUrl="../../../Images/Gnome-Face.png" />
                                        <a href="javascript:void(0);" onclick="ShowUploadImg()" style="margin-top: 20px; display: none;">重设图片</a>
                                    </span>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td valign="middle" class="width75">菜品特点：</td>
                            <td valign="top">
                                <asp:TextBox runat="server" TextMode="MultiLine" ID="txt_tedian" Style="height:76px; width:145px" CssClass="input_topleft"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td valign="middle" class="width75">菜品做法：</td>
                            <td colspan="2">
                                <asp:TextBox runat="server" TextMode="MultiLine" ID="Txt_zuofa" Style="height: 80px; width:263px" CssClass="input_topleft"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                    
                </div>
                <div id="Nutrient" class="div_0207 right_width">
                    <h1><img src="../../Images/cp_h1_02.gif" />营养素信息</h1>
                    <dl>
                        <dt>主要膳食营养素含量</dt>
                        <dd style="width: 350px">
                            <table align="center" cellpadding="0" cellspacing="2" border="0" width="335">
                                <tr>
                                    <td align="right">热　　量：</td>
                                    <td><asp:Label ID="lbl_reliang" runat="server" Text="0"></asp:Label>千卡(kcal)</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td align="right">蛋 白 质：</td>
                                    <td><asp:Label ID="lbl_danbaizhi" runat="server" Text="0"></asp:Label>克(g)</td>
                                </tr>
                                <tr>
                                    <td align="right">脂　　肪：</td>
                                    <td><asp:Label ID="lbl_zhifang" runat="server" Text="0"></asp:Label>千卡(kcal)</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td align="right">碳水化合物：</td>
                                    <td><asp:Label ID="lbl_tanshuihuahewu" runat="server" Text="0"></asp:Label>克(g)</td>
                                </tr>
                                <tr>
                                    <td align="right">膳食纤维：</td>
                                    <td><asp:Label ID="lbl_shanshixianwei" runat="server" Text="0"></asp:Label>千卡(kcal)</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td align="right"></td>
                                    <td></td>
                                </tr>
                            </table>
                        </dd>
                    </dl>
                    <dl>
                        <dt>维生素</dt>
                        <dd style="width: 350px">
                            <table align="center" cellpadding="0" cellspacing="2" border="0" width="335">
                                <tr>
                                    <td align="right">维生素A：</td>
                                    <td><asp:Label ID="lbl_weishengsuA" runat="server" Text="0"></asp:Label>微克(ug)</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td align="right">维生素B1：</td>
                                    <td><asp:Label ID="lbl_weishengsuB1" runat="server" Text="0"></asp:Label>毫克(mg)</td>
                                </tr>
                                <tr>
                                    <td align="right">维生素C：</td>
                                    <td><asp:Label ID="lbl_weishengsuC" runat="server" Text="0"></asp:Label>毫克(mg)</td>                                    
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td align="right">维生素B2：</td>
                                    <td><asp:Label ID="lbl_weishengsuB2" runat="server" Text="0"></asp:Label>毫克(mg)</td>
                                </tr>
                                <tr>
                                    <td align="right">维生素E：</td>
                                    <td><asp:Label ID="lbl_weishengsuE" runat="server" Text="0"></asp:Label>毫克(mg)</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td align="right">视黄醇当量：</td>
                                    <td><asp:Label ID="lbl_shihuangchundangliang" runat="server" Text="0"></asp:Label>微克(ug)</td>
                                </tr>
                                <tr>
                                    <td align="right">尼 克 酸：</td>
                                    <td><asp:Label ID="lbl_nikesuan" runat="server" Text="0"></asp:Label>毫克(mg)</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp; </td>
                                    <td align="right">胡萝卜素：</td>
                                    <td><asp:Label ID="lbl_huluobosu" runat="server" Text="0"></asp:Label>毫克(mg)</td>
                                </tr>
                            </table>
                        </dd>
                    </dl>
                    <dl>
                        <dt>矿物质含量(毫克(mg))</dt>
                        <dd style="width: 350px">
                            <table align="center" cellpadding="0" cellspacing="2" border="0" width="335">
                                <tr>
                                    <td width="30" align="right">钙：</td>
                                    <td width="60"><asp:Label ID="lbl_gai" runat="server" Text="0"></asp:Label></td>
                                    <td width="30" align="right">磷：</td>
                                    <td width="60"><asp:Label ID="lbl_ling" runat="server" Text="0"></asp:Label></td>
                                    <td width="30" align="right">钾：</td>
                                    <td width="60"><asp:Label ID="lbl_jia" runat="server" Text="0"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td align="right">钠：</td>
                                    <td><asp:Label ID="lbl_na" runat="server" Text="0"></asp:Label></td>
                                    <td align="right">镁：</td>
                                    <td><asp:Label ID="lbl_mei" runat="server" Text="0"></asp:Label></td>
                                    <td align="right">铁：</td>
                                    <td><asp:Label ID="lbl_tie" runat="server" Text="0"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td align="right">锌：</td>
                                    <td><asp:Label ID="lbl_xin" runat="server" Text="0"></asp:Label></td>
                                    <td align="right">硒：</td>
                                    <td><asp:Label ID="lbl_xi" runat="server" Text="0"></asp:Label></td>
                                    <td align="right">铜：</td>
                                    <td><asp:Label ID="lbl_tong" runat="server" Text="0"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td align="right">锰：</td>
                                    <td><asp:Label ID="lbl_men" runat="server" Text="0"></asp:Label></td>
                                    <td align="right">碘：</td>
                                    <td><asp:Label ID="lbl_dian" runat="server" Text="0"></asp:Label></td>
                                    <td align="right">&nbsp;</td>
                                    <td>&nbsp;</td>
                                </tr>
                            </table>
                        </dd>
                    </dl>
                </div>
                <div class="div_0207 left_width450" style="height: 150px; overflow: auto;">
                    <h1>
                        <img src="../../Images/cp_h1_03.gif" />菜品原料信息<a href="javascript:void(0);" onclick="showitem();" style="display: none;">添加原料</a></h1>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="swxx_table">
                        <thead>
                            <tr>
                                <td style="width: 50px">序号</td>
                                <td style="width: 135px">原料名称</td>
                                <td style="width: 65px">种类</td>
                                <td style="width: 65px">净用量</td>
                            </tr>
                        </thead>
                        <tbody id="Dish_Info">
                            <asp:Repeater ID="Rep_yuanliaoList" runat="server">
                                <ItemTemplate>
                                    <tr onmouseout="this.style.background='#ffffff'" onmouseover="this.style.background='#C2DEF6'">
                                        <td align="center"><%#GetXuNiIndex()%></td>
                                        <td align="center"><%#Eval("DName") %></td>
                                        <td align="center"><%#Eval("zs") %></td>
                                        <td align="center"><%#Eval("Content")%></td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="Center_Content" id="div2_2" style="display: none">
        <div style="height: 600px; width: 500px; text-align: center; line-height: 300px;">
            暂无内容</div>
    </div>
    <div class="Center_Content" id="div2_3" style="display: none">
        <div style="height: 600px; width: 500px; text-align: center; line-height: 300px;">
            暂无内容</div>
    </div>
    <div class="footer">
        <strong>中海油能源发展配餐服务公司渤海自营油田作业公司&nbsp;&nbsp;版权所有@CopyRight 2012</strong><span>技术支持：北京天择嘉业科技有限公司</span>
    </div>
    <!--遮罩层
-->
    <div id="divmain" class="bg">
    </div>
    <!--弹出层-->
    <div id="divup" class="center_div" style="padding: 0px; margin-top: -130px;">
        <table border="0" cellpadding="0" cellspacing="0" style="width: 98%; margin: 0px auto;">
            <tr>
                <td>
                    <div class="div_0207 left_width400" style="width: 100%; height: 240px;">
                        <h1><img src="../../Images/cp_h1_03.gif" />菜谱库</h1>
                        <div style="height: 220px; overflow-y: auto;">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="swxx_table">
                                <thead>
                                    <tr>
                                        <td style="width: 50px">序号</td>
                                        <td style="width: 150px;">菜谱库名称</td>
                                        <td style="width: 150px;">备注</td>
                                    </tr>
                                </thead>
                                <tbody id="td_Library"><%= Session["Library"] %></tbody>
                            </table>
                        </div>
                    </div>
                </td>
            </tr>
            <tr align="center">
                <td align="center">
                    <div align="center" class="img_touxiang" style="width: 100%;">
                        <table align="center">
                            <tr align="center">
                                <%-- <td align="center">
<a href="#" onclick='divhidel("divmain","divup")'>确定</a> </td>--%>
                                <td align="center" style="padding-top: 10px; padding-bottom: 10px;">
                                    <a href="javascript:void(0);" onclick='divhidel("divmain","divup")'>关闭</a>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div id="div_bg" class="bg"></div>
    <div id="div_main" class="center_div" style="padding: 10px 0px; margin-top: -50px;">
        <table width="100%">
            <tr><td colspan="2" align="center"><asp:FileUpload ID="File_Upload" runat="server" /></td></tr>
            <tr>
                <td align="right"><asp:Button ID="Button1" runat="server" OnClick="butUpClose_Click" CssClass="input_btn_a" Text="确定" /></td>
                <td align="left"><input type="button" id="btn_quxiao" value="取消" onclick="" class="input_btn_a" /></td>
            </tr>
        </table>
    </div>
    <div id="div_DishList" class="center_div" style="padding: 10px 0px; margin-top: -130px; width: 650px;">
        <table border="0" cellpadding="0" cellspacing="0" style="width: 98%; margin: 0px auto;">
            <tr>
                <td>
                    <h2 style=" font-weight:400;" >
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td>查询类别：</td>
                                <td width="150"><asp:DropDownList runat="server" ID="Drop_DishType" style="width:150px;" class="select_input_bg"></asp:DropDownList></td>
                                <td>菜品名称：</td>
                                <td><asp:TextBox ID="txt_DishName" runat="server" CssClass="input_bg"></asp:TextBox></td>
                                <td><input type="button" id="btn_chaxun" class="input_btn_a" onclick="new_caipu_click()" value="查询" /></td>
                            </tr>
                        </table>
                    </h2>
                    <div class="div_0207 left_width400" style="width: 300px; height: 240px;">
                        <h1><img src="../../Images/cp_h1_03.gif" />菜品列表</h1>
                        <div style="height: 213px; overflow-y: auto;">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="swxx_table">
                                <thead>
                                    <tr>
                                        <td style="width: 50px">选择</td>
                                        <td style="width: 50px;">序号</td>
                                        <td>菜品名称</td>
                                    </tr>
                                </thead>
                                <tbody id="tbody_DishList"></tbody>
                            </table>
                        </div>
                    </div>
                    <div class="div_0207 left_width400" style="width: 300px; height: 240px;margin-left:10px;">
                        <h1><img src="../../Images/cp_h1_03.gif" />菜品详细</h1>
                        <div style="height: 220px; overflow-y: auto;">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Dish_info_td">
                                <tbody>
                                    <tr>
                                        <td width="75" align="right" style="padding-top:10px;">菜品名称：</td>
                                        <td style="padding-top:10px;"><input type="text" id="txt_Dish_Name" class="input_bg" style="width:95%;" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right" valign="top">菜品特点：</td>
                                        <td><textarea id="txt_Dish_Characteristic" class="input_bg" style="height:75px;width:95%; word-break:break-all; word-wrap : break-word;"></textarea></td>
                                    </tr>
                                    <tr>
                                        <td align="right" valign="top">菜品做法：</td>
                                        <td><textarea id="txt_Dish_Method" class="input_bg" rows="4"  style="height:75px;width:95%; word-break:break-all; word-wrap : break-word; "></textarea></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </td>
            </tr>
            <tr align="center">
                <td align="center">
                    <div align="center" class="img_touxiang" style="width: 100%;">
                        <table align="center" width="100%">
                            <tr align="center">
                                <td align="left" style="width:80px;">
                                    <input id="CheckAll" type="checkbox" />全选
                                </td>
                                <td align="right" style="padding-top: 10px; padding-bottom: 10px;width:225px;">
                                    <a href="javascript:void(0);" onclick="library_AddDish()" style="margin-right:5px;">确认</a>
                                </td>
                                <td align="left" style="padding-top: 10px; padding-bottom: 10px;">
                                    <a href="javascript:void(0);" onclick="divhidel('div_DishList','div_bg')" style="margin-left:5px;">关闭</a>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>


        
    </div>
    </form>
</body>
</html>
